package com.xiake.core.model;

public class ReturnDataModel {
	public static int RETURN_SUCCESS = 200;

    public static int RETURN_FAILURE = 500;

    public static int RETURN_NEED_LOGIN = 431;

    public static int RETURN_TOKEN_FAILURE = 201;

    private int status; // 状态码

    private String msg; // 信息

    private Object data; // 数据

    /**
     * Instantiates a new return date model.
     */
    public ReturnDataModel() {

    }

    /**
     * Instantiates a new return date model.
     *
     * @param status
     *            the status
     * @param msg
     *            the msg
     */
    public ReturnDataModel(int status, String msg) {
        this.status = status;
        this.msg = msg;
        this.data = "";
    }

    /**
     * Instantiates a new return date model.
     *
     * @param status
     *            the status
     * @param msg
     *            the msg
     * @param data
     *            the data
     */
    public ReturnDataModel(int status, String msg, Object data) {
        this.status = status;
        this.msg = msg;
        this.data = data;
    }

    /**
     * Gets the status.
     *
     * @return the status
     */
    public int getStatus() {
        return status;
    }

    /**
     * Sets the status.
     *
     * @param status
     *            the new status
     */
    public void setStatus(int status) {
        this.status = status;
    }

    /**
     * Gets the msg.
     *
     * @return the msg
     */
    public String getMsg() {
        return msg;
    }

    /**
     * Sets the msg.
     *
     * @param msg
     *            the new msg
     */
    public void setMsg(String msg) {
        this.msg = msg;
    }

    /**
     * Gets the data.
     *
     * @return the data
     */
    public Object getData() {
        return data;
    }

    /**
     * Sets the data.
     *
     * @param data
     *            the new data
     */
    public void setData(Object data) {
        this.data = data;
    }
}
